
$(function() {
	var _vv_option = {
		rules: {
			name: {
				remote: "contact.php?do=Supplier.ajax_exist1",
				required: true
			},
		
			fullname: {
				remote: "contact.php?do=Supplier.ajax_exist2",
				required: true
			}
		},
		messages: {
			name: {
				remote: jQuery.format("{0} 已经存在")
			},
			fullname: {
				remote: jQuery.format("{0} 已经存在")
			}
		},
		errorPlacement: function(label, element) {
			label.insertAfter(element);
		},
		success: function(label) {
			label.html("&nbsp;").addClass("checked");
		}
	};	
	
	validator = $("#form_add").validate(_vv_option);
	
	$("input[name=emp]:visible").autocomplete(Test.emp);
	
	_ck_default("input[id='emp']:visible", "input[id^='emp_t']:visible");

	$('textarea').css("width", 400);
});
